/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 98152
 * Date: 2024-12-09
 * Time: 19:20
 */
public class Test {
    public static void main(String[] args) {
        TreeNode node1 = new TreeNode(5);
        TreeNode node2 = new TreeNode(4);
        TreeNode node3 = new TreeNode(6);
        TreeNode node4 = new TreeNode(3);
        TreeNode node5 = new TreeNode(7);

        node1.left = node2;
        node1.right = node3;
        node3.left = node4;
        node3.right = node5;

        TreeNode root = node1;

        Solution solution = new Solution();
        solution.isValidBST(root);
    }
}
